using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Jasongozy.Alaton {
    public static class XmlTool {
        public static string GetValue(XmlNode theNode, string xPath) {
            if (theNode == null || string.IsNullOrEmpty(xPath)) return null;
            XmlNode newNode = theNode.SelectSingleNode(xPath);
            if (newNode == null) return null;
            return newNode.InnerText.Trim();
        }
    }
}
